package com.example.mapper;

import com.example.entity.Jiesuan;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface JiesuanMapper {
    List<Jiesuan> findAll(@Param("name") String name, @Param("typeId") Integer typeId);

    /**
     * 根据id进行删除
     * @param id
     */
    @Delete("delete from dingdan where id = #{value}")
    void delete(Integer id);

    @Select("select * from dingdan where id=#{value}")
    Jiesuan getById(Integer id);

    void update(Jiesuan jiesuan);
}
